package com.gopay.common.cps.dao.trans.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.gopay.common.base.dao.impl.BaseReadDAOImpl;
import com.gopay.common.cps.dao.trans.AcctTransDAO;
import com.gopay.common.domain.acps.AcpsAcctTransDtl;

/**
 * 账务明细查询DAO实现
 * 
 * @AcctTransDAOImpl.java
 * @author yaobo
 * @2013-7-9 下午05:06:20 www.gopay.com.cn Inc.All rights reserved.
 */
@Repository("acctTransDAO")
public class AcctTransDAOImpl extends BaseReadDAOImpl<AcpsAcctTransDtl, Long> implements AcctTransDAO {

    @Override
    public List<AcpsAcctTransDtl> getAcctTransDtls(String gopayOrderId, String drOrCr) {
        String hql = " from AcpsAcctTransDtl where gopayOrderId = :gopayOrderId";

        Map<String, Object> params = new HashMap<String, Object>();
        params.put("gopayOrderId", gopayOrderId);
        // params.put("drOrCr", drOrCr);

        List<AcpsAcctTransDtl> list = this.findByHql(hql, params);

        return list;
    }

}
